From 9c3c47ec6e576f3a90d6ea9b3c21e4fdeefa01b7 Mon Sep 17 00:00:00 2001 From: "kaf24@firebug.cl.cam.ac.uk" Date: Thu, 8 Sep 2005 17:47:48 +0000 Subject: [PATCH] No need to qsort the pfn array in domu builder. --- tools/libxc/xc_linux_build.c | 8 -------- 1 file changed, 8 deletions(-) diff --git a/tools/libxc/xc_linux_build.c b/tools/libxc/xc_linux_build.c index d8bd76d26f..1d0f6d7388 100644 --- a/tools/libxc/xc_linux_build.c +++ b/tools/libxc/xc_linux_build.c @@ -283,11 +283,6 @@ static int setup_pg_tables_64(int xc_handle, u32 dom, } #endif -static int compare (const void * a, const void * b) -{ - return ( *(long*)a - *(long*)b ); -} - #ifdef __ia64__ #include /* for FPSR_DEFAULT */ static int setup_guest(int xc_handle, @@ -501,9 +496,6 @@ static int setup_guest(int xc_handle, goto error_out; } - qsort( page_array, nr_pages, sizeof(*page_array), compare ); - - (load_funcs.loadimage)(image, image_size, xc_handle, dom, page_array, &dsi); -- 2.30.2